package com.dong.design.factory.abstract_;

/**
 * @author jianyang206881
 * @date 2018/6/8
 */
public class FactoryProducer {
    public static AbstractFactory getFactory(String choice) {
        switch (choice) {
            case "shape":
                return new ShapeFactory();
            case "color":
                return new ColorFactory();
            default:
                return null;
        }
    }
}
